package com.erpx.api.trade;

import com.erpx.api.CommonConstants;
import com.erpx.api.WdtClient;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class TradeRemarkChangeService {

    public static void batchChangeRemarkFlag() {
        WdtClient client = new WdtClient(CommonConstants.sid, CommonConstants.appkey, CommonConstants.appSecret, CommonConstants.baseUrl);
        Map<String, String> params = new HashMap<String, String>();
        params.put("trade_ids", "2627576769963622404,2625366574315339791");

        params.put("remark_flag", "1");
        try {
            String response = client.execute("sales_trade_batch_remark_flag.php", params);
            System.out.println(response);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }

    public static void main(String[] args) {
        batchChangeRemarkFlag();
    }
}
